package top.mccat.common.core.domain.bk;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import top.mccat.common.annotation.Excel;
import top.mccat.common.core.domain.BaseEntity;

/**
 * 仓库管理对象 bk_base
 * 
 * @author Raven
 * @date 2023-01-09
 */
public class BkBase extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 仓库表主键 */
    private Integer id;

    /** 库存数量 */
    @Excel(name = "库存数量")
    private Double amount;

    /** 仓库物品备注 */
    @Excel(name = "仓库物品备注")
    private String itemRemark;

    /** 存放地址（楼上楼下）,0对应楼下，1对应楼上，字典 */
    @Excel(name = "存放地址", dictType = "bk_base_location")
    private Integer itemLocation;

    @Excel(name = "商品名称")
    private String productName;

    @Excel(name = "商品型号")
    private String productModel;

    private Long productId;

    private Long supplierId;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }
    public void setAmount(Double amount)
    {
        this.amount = amount;
    }

    public Double getAmount()
    {
        return amount;
    }
    public void setItemRemark(String itemRemark) 
    {
        this.itemRemark = itemRemark;
    }

    public String getItemRemark() 
    {
        return itemRemark;
    }
    public void setItemLocation(Integer itemLocation) 
    {
        this.itemLocation = itemLocation;
    }

    public Integer getItemLocation() 
    {
        return itemLocation;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public String getProductModel() {
        return productModel;
    }

    public void setProductModel(String productModel) {
        this.productModel = productModel;
    }

    public Long getProductId() {
        return productId;
    }

    public void setProductId(Long productId) {
        this.productId = productId;
    }

    public Long getSupplierId() {
        return supplierId;
    }

    public void setSupplierId(Long supplierId) {
        this.supplierId = supplierId;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("amount", getAmount())
            .append("itemRemark", getItemRemark())
            .append("itemLocation", getItemLocation())
            .append("productName", getProductName())
            .append("productModel", getProductModel())
            .append("supplierId", getSupplierId())
            .append("productId",productId)
            .toString();
    }
}
